package com.repair.worker.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.repair.datasource.entity.BaseEntity;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张强
 * @since 2024-09-13
 */
@Getter
@Setter
@TableName("worker")
@ApiModel(value = "Worker对象", description = "")
public class Worker extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("姓名")
    @TableField("nickname")
    private String nickname;

    @ApiModelProperty("手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("总金额，默认0.00")
    @TableField("total_amount")
    private BigDecimal totalAmount;


    @ApiModelProperty("公司唯一ID")
    @TableField("company_id")
    private Long companyId;

    @ApiModelProperty("是否拉黑(1,拉黑,0不拉黑)")
    @TableField("worker_status")
    private String workerStatus;

    @ApiModelProperty("维修状态(1,维修,0,空闲)")
    @TableField("repair_status")
    private String repairStatus;

    @ApiModelProperty("接单状态(2,维修中1,已接单,0空闲)")
    @TableField("order_status")
    private String orderStatus;

    @ApiModelProperty("身份证号id")
    @TableField("id_card_number")
    private String idCardNumber;

    @ApiModelProperty("真实姓名")
    @TableField("real_name")
    private String realName;

    @ApiModelProperty("头像地址")
    @TableField("profile_photo_url")
    private String profilePhotoUrl;

    @ApiModelProperty("师傅等级")
    @TableField("worker_level")
    private String workerLevel;

    @ApiModelProperty("逻辑删除(0,存在1,删除)")
    @TableField("deleted")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("实名认证状态: 0未认证, 1已认证")
    @TableField("authentication_status")
    private Integer authenticationStatus;

    @ApiModelProperty("接单总数")
    @TableField("received_order_sum")
    private Integer receivedOrderSum;
}
